//
//  BaseViewController.h
//  YYBG_IOS
//
//  Created by wyl on 2017/2/22.
//  Copyright © 2017年 wyl. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Mantle.h"
#import "BSCommon.h"
#import "BSConfig.h"
#import "UIView+Extension.h"
#import "BaseNoDate.h"
#import "BaseCollectionview.h"
#import "BaseTableView.h"
#import "MJRefresh.h"
#import "UIButton+ImageTitleSpacing.h"
typedef BOOL (^ItemBarActionBlock)();

@interface BaseViewController : UIViewController


@property(nonatomic,strong) BaseNoDate *noDateView ;


//顶部左边按钮
-(void)topLeftItemButton:(UIImage *)image title:(NSString *)title;
//顶部右边按钮(image2为空则显示一个) 返回的是第一个
-(void)topRightItemButton:(UIImage *)image1 image2:(UIImage *)image2 title1:(NSString *)title1 title2:(NSString *)title2;

-(UIButton *)getLeftButton ;
-(UIButton *)getRightButton1 ;
-(UIButton *)getRightButton2 ;

#pragma mark 标题栏
//设置标题
-(void)setTopBarTitle:(NSString *)title ;
//设置标题栏文字颜色
-(void)setTopBarTitleColor:(UIColor *)color ;
//设置标题栏背景颜色
-(void)setTopBarBackgroud:(UIColor *)color;
//隐藏导航栏
-(void)hideNavigationBarHidden ;
//设置导航栏为透明状态
-(void)transparentNavigationBar ;
//隐藏底部导航
-(void)hideTabBar;
#pragma mark 状态栏
//时间栏颜色
-(void)setStateBackgroud:(BOOL)black ;

-(void)showNoNetWortOrDate ;
@end
